package com.lz.yz.empowerment.dao;

import com.lz.yz.core.Mapper;
import com.lz.yz.empowerment.Param.QuestionParam;
import com.lz.yz.empowerment.Param.ShareOrderCount;
import com.lz.yz.empowerment.Param.ShareOrderParam;
import com.lz.yz.empowerment.entity.QuestionBuff;
import com.lz.yz.empowerment.model.IsPayShareOrderBean;
import com.lz.yz.empowerment.model.LableBean;
import com.lz.yz.empowerment.model.QuestionBean;
import com.lz.yz.empowerment.model.ShareTitleBean;
import com.lz.yz.member.entity.Member;

import java.util.List;

public interface QuestionBuffMapper extends Mapper<QuestionBuff> {

    List<QuestionBean> queryQuestionlist(QuestionParam param);

    List<QuestionBean>  queryAttentionQuestionlist(QuestionParam param);//我关注的赋能列表

    List<LableBean>queryLableList(QuestionParam param);

    List<QuestionBean> queryRecommendQuestionlist(QuestionParam param);//推荐赋能

    QuestionBean   queryQuestionDetails(QuestionParam param);//赋能详情

    List<Member>  queryTeachMember(QuestionParam param);// 查询已赋能人员

    ShareTitleBean  queryShareTitle(QuestionParam param);//根据平摊ID查询平摊赋能信息

    List<Member> queryQuestionPayMember(QuestionParam param);//根据赋能ID查询赋能已支付人员信息

    List<Member> querySharePayMember(QuestionParam param);//根据平摊ID查询平摊已支付人员信息

    ShareOrderCount queryShareOrderNumByPay(ShareOrderParam shareOrderParam);// 查询赋能平摊完成的订单数//金额

    List<QuestionBean> queryBuyQuestionList(QuestionParam param);//通过用户ID查询我购买的赋能

    List<QuestionBean> queryBuyShareList(QuestionParam param);//根据平摊ID查询平摊已支付人员信息

    List<QuestionBean> queryReleaseQuestionList(QuestionParam param);//通过用户ID查询我发布的赋能

    List<QuestionBean> queryShareScheduleList(QuestionParam param);//通过用户ID查询我参与的平摊赋能进度

    List<IsPayShareOrderBean> queryShareIsPay(QuestionParam param);//通过用户ID和问题ID查询当前角色

    Integer queryQuestionNumByPay(QuestionParam param);//查詢已賦能人員數



}